﻿@{
    ViewBag.Title = "ThemUser";
    Layout = "~/Views/Shared/Admin/_AdminLayout.cshtml";
}
<script src="~/ckeditor/ckeditor.js"></script>
@model BabyToys.Models.DanhMuc
@using(Html.BeginForm())
{
<div style="background: #fff; text-align: right; height: 40px; width: 100%; border: 1px solid #ccc;">
    <span style="font-size: 18px; font-weight: bold; float: left; padding-top: 17px;padding-left: 15px;">SỬA THÔNG TIN USER</span>
    <table style="float: right; font-size: 11px; color: #262626;">
        <tr>
            <td class="control">
                <input type="submit" class="large button green input" value="Lưu">
            </td>
            <td class="control">
                <a href="~/AdminUser/PhanQuyen" class="large button black input">Đóng</a>
            </td>

        </tr>
    </table>
</div>
<div class="Main_nhap" style="">
    <div class="Main_nhap_left">
        <div style="padding-top: 10px;">
            <div style="border: 1px solid #ccc; background: #e7e7e7; width: 99%; padding: 8px; min-height: 200px; text-shadow: #fff 0px 1px 0px;">
                <table class="Conten_main_sanpham" cellpadding="0" style="border: 1px solid #fff;">
                    <tr class="row">
                        <td class="box_title">Tên loại</td>
                        <td class="box_object">
                            @Html.TextBoxFor(model=>model.TenDanhMuc,new {@class="input_text", style="width: 300px"})
                            <span class="error">@Html.ValidationMessageFor(model=>model.TenDanhMuc)</span>
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title">Danh mục cha</td>
                        <td class="box_object">
                            @Html.DropDownList("IdDanhMucCha")
                            <span class="error">@Html.ValidationMessageFor(model=>model.DanhMucCha.IdDanhMuc)</span>
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title">Mô tả danh mục</td>
                        <td class="box_object">
                            @Html.TextAreaFor(model => model.MoTa, new { rows = "5", cols = "10", id = "ckemota" })
                                <script type="text/javascript">
                                    var ckeditor1 = CKEDITOR.replace("ckemota")
                                    ckeditor1.config.toolbar = [
                                                   ['Styles', 'Format', 'Font', 'FontSize'],
                                                   '/',
                                                   ['Bold', 'Italic', 'Underline', 'StrikeThrough', '-', 'Undo', 'Redo', '-', 'Cut', 'Copy', 'Paste', 'Find', 'Replace', '-', 'Outdent', 'Indent', '-', 'Print'],
                                                   '/'
                                    ];
                                    ckeditor1.config.width = 500;
                                    ckeditor1.config.height = 150;
                                </script>
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title">Ghi chú</td>
                        <td class="box_object">
                           @Html.TextAreaFor(model=>model.GhiChu,new {style="width: 300px",rows="4"})
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title">Hiển thị</td>
                        <td class="box_object">
                           @Html.CheckBoxFor(model=>model.HienThi)
                            Chi phép hiển thị danh mục này
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
